//
//  CustomViewController.h
//  AmountBody
//
//  Created by Qiu Jishuai on 2017/12/30.
//  Copyright © 2017年 RCMTM. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "CustomSwitchView.h"
#import "ABNavigationBar.h"
#import "CustomModelView.h"
#import "CustomSecondViewController.h"
#import "CustomEmbroideryView.h"
#import "CustomNavigationDelegate.h"
#import "CustomStyleViewController.h"
#import "CustomNewsAmountViewController.h"
#import "CustomOrderInfoViewController.h"
#import "Customization.h"
#import "CustomNewsViewController.h"
#import "CustomConstants.h"

@interface CustomViewController : UIViewController
@property (nonatomic, strong) UIScrollView *scrollView;
@property (nonatomic, strong) CustomSwitchView *switchView;
@property (nonatomic, strong) CustomModelView *modelView;

@property (nonatomic, strong) CustomStyleViewController *styleVC;
@property (nonatomic, strong) CustomOrderInfoViewController *infoVC;
@property (nonatomic, strong) CustomSecondViewController *designVC;
@property (nonatomic, strong) CustomSecondViewController *depathDesignVC;
@property (nonatomic, strong) CustomNewsViewController *measureVC;

@property (nonatomic, strong) Customization *customization;

@property (nonatomic, assign) CustomSubviewControllerType currentType;
@property (nonatomic, assign) BOOL isScrollToNext;
@property (nonatomic, assign) BOOL isScrollToPrevious;

- (void)addVc: (CustomBaseSubViewController *)vc;
- (void)addNextVc: (CustomBaseSubViewController *)vc;
- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView;
- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView;
- (CustomBaseSubViewController *)vcWithType: (CustomSubviewControllerType)type;

- (void)handleSwitchIndex: (NSInteger)last index: (NSInteger)index;
- (void)switchToSmallIndex: (NSInteger)index;
- (void)switchToLargeIndex: (NSInteger)index lastType: (CustomSubviewControllerType)type;
- (void)switchToNext;
@end
